#pragma once
#include "stdafx.h"

vector<string> read_string(const char* path)
{
	vector<string> vec;
	ifstream ifs(path);
	istream_iterator<string> in_iter(ifs);
	istream_iterator<string> eof;
	auto str_iter = back_inserter(vec);
	while (in_iter != eof) {
		str_iter = *in_iter++;
	}
	return vec;
}


list<string> read_string_list(const char* path)
{
	list<string> list;
	ifstream ifs(path);
	istream_iterator<string> in_iter(ifs);
	istream_iterator<string> eof;
	auto str_iter = back_inserter(list);
	while (in_iter != eof) {
		str_iter = *in_iter++;
	}
	return list;
}